package top.hcode.hoj.pojo.entity.group;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author orangej
 * @since 2024/12/29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Team小组，团队的下一级", description = "")
@TableName("`team`")
public class Team implements Serializable {

    private static final long serialVersionUID = -6165423764182052924L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "小组名称")
    private String teamName;

    private Long gid;

    private Date gmtCreate;

    private Date gmtModified;

    /*关联字段*/
    @TableField(exist = false)
    private Group group;
}
